<ControlTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ControlTemplate.Resources>
        <BooleanToVisibilityConverter x:Key="visibilityConverter" />
    </ControlTemplate.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="{Binding Path=ItemOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <StackPanel Orientation="Horizontal" 
                    HorizontalAlignment="Right" 
                    VerticalAlignment="Top"
                    Visibility="{Binding Path=ShowMarker, 
                                         RelativeSource={RelativeSource Mode=TemplatedParent},
                                         Converter={StaticResource visibilityConverter}}">
            <TextBlock Text="{Binding Path=MarkerText, RelativeSource={RelativeSource Mode=TemplatedParent}}"
                       FontFamily="{Binding Path=MarkerFont, RelativeSource={RelativeSource Mode=TemplatedParent}}"
                       FontSize="{Binding Path=MarkerSize, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
            <Border Width="{Binding Path=MarkerOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}"
                    Background="Transparent"
                    BorderThickness="0" />
        </StackPanel>
        
        <ItemsPresenter Grid.Column="1" />
    </Grid>
</ControlTemplate>